<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>验证码</title>
    <style>
        .captcha-img {
            width: 120px;
            height: 40px;
            cursor: pointer;
            border: 1px solid #ddd;
        }
    </style>
</head>
<body>
<!-- 验证码图片（核心：点击刷新，防缓存） -->
<img class="captcha-img"
     src="/login/getCaptcha?r=0"
     alt="验证码"
     onclick="this.src='/login/getCaptcha?r='+Math.random()">
</body>
</html>